<?php switch ($phase->index) { case 6: $on = isset($map['cf-no-script']) ? !is_null($value) : $value == 'on'; $dvon = !empty($xml->DisplayValueOn) ? $xml->DisplayValueOn : 'on'; $dvoff = !empty($xml->DisplayValueOff) ? $xml->DisplayValueOff : 'off'; $value = $on ? 1 : 0; $displayvalue = $on ? $dvon : $dvoff; break; case 5: $on = isset($varmap['cf-no-script']) ? isset($varmap['id-' . $fldid]) : isset($varmap['id-' . $fldid]) && $varmap['id-' . $fldid] == 'on'; if ($on) { $valid = TRUE; $varmap['id-' . $fldid] = "on' checked title='"; } break; case 7: $fldid = $fld->get('id'); $on = isset($varmap['cf-no-script']) ? isset($varmap['id-' . $fldid]) : isset($varmap['id-' . $fldid]) && $varmap['id-' . $fldid] == 'on'; if ($on) { $varmap['id-' . $fldid] = "on' checked title='"; } break; } ?>